import routerComponent from './router-component';
const routes = [
  {
    path: '/',
    component: routerComponent.index,
    redirect: ':APPID/record',
    children: [
      {
        path: ':APPID/record',
        component: routerComponent.record,
        meta: {
          title: '通话记录'
        }
      },
      {
        path: ':APPID/contact',
        component: routerComponent.contact,
        meta: {
          title: '联系人'
        }
      },
      {
        path: ':APPID/mine',
        component: routerComponent.mine,
        meta: {
          title: '我的',
          header: false
        }
      },
      {
        path: ':APPID/add-contact',
        component: routerComponent.addContact,
        meta: {
          title: '添加联系人',
          isBark: true
        }
      },
      {
        path: ':APPID/:alias',
        component: routerComponent.pages,
        meta: {
          isBark: true,
          title: ''
        }
      }
    ]
  },
  {
    path: '/error',
    component: routerComponent.loseConnection,
    meta: {
      title: '连接超时'
    }
  },
  {
    name: 'default',
    path: '*',
    redirect: '/error',
    hidden: true
  }
];
export default routes;
